define(function(require, exports, module)
{
    var $ = require("$");
    var modaldialog = require("modaldialog");
    var Selector = require("./multiselect2side");
    exports.init = function(param)
    {
        var example = new modaldialog(
        {
            attrs :
            {
                id : "authosize",
                title : '授权管理',
                items : [
                {
                    isDiv : true,
                    id : 'authosizeform',
                }],
                isOverrideDefaultPositionCss : true,
                customPositionCss : "width:600px;"
            },
            renderTo : param.renderTo,
            afterRender : function()
            {
                $('#authosize').modal('hide');
                new Selector(
                {
                    attrs :
                    {
                        url : param.attrs.url
                    },
                    renderTo : "authosizeform"
                });
            },
        });
        $('#authosize').modal('show');
    };
    exports.getSelectedData = function()
    {
        return $("#funcselect").val();
    };
});
